package com.rw.firstboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class TestController {

    @GetMapping("data")
    public Map<String, Object> getData(){
        Map<String ,Object> result = new HashMap<>();
        result.put("data","2134");
        result.put("msg","请求成功");
        return result;
    }

}
